<script setup>
import { artGetChannelService } from '@/api/article.js'
defineProps({
  modelValue: {
    type: [Number, String]
  }
})
const emit = defineEmits(['update:modelValue'])
const channelList = ref([])
const getChannelList = async () => {
  channelList.value = await artGetChannelService().data.data
}
getChannelList()
</script>

<template>
  <el-select style="width: 350px" :modelValue="modelValue" :@update:modelValue="emit('update:modelValue', $event)">
    <el-option v-for="channel in channelList" :key="channel.id" :label="channel.cate_name" :value="channel.id"></el-option>
  </el-select>
</template>

<style scoped>

</style>
